﻿using System.Collections.ObjectModel;

namespace IDEAMS.model.spectrum
{
    public class SpectrumDisplayViewModel : ViewModelBase
    {
        public SpectrumDisplayViewModel() { }


        private string m_selectedChannelText;
        public string selectedChannelText
        {
            get { return m_selectedChannelText; }
            set
            {
                m_selectedChannelText = value;
                NotifyPropertyChanged();
            }
        }

        private ValueRangeViewModel m_waveLenRange;
        public ValueRangeViewModel waveLenRange//波长范围
        {
            get { return m_waveLenRange; }
            set
            {
                if (value != this.m_waveLenRange)
                {
                    this.m_waveLenRange = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private ValueRangeViewModel m_dBmRange;
        public ValueRangeViewModel dBmRange//强度范围
        {
            get { return m_dBmRange; }
            set
            {
                if (value != this.m_dBmRange)
                {
                    this.m_dBmRange = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private ObservableCollection<double> m_referenceLines;
        public ObservableCollection<double> referenceLines
        {
            get { return m_referenceLines; }
            set
            {
                if (value != this.m_referenceLines)
                {
                    this.m_referenceLines = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private ChannelItemViewModel m_selectedChannelItem;
        public ChannelItemViewModel selectedChannelItem
        {
            get { return m_selectedChannelItem; }
            set
            {
                this.m_selectedChannelItem = value;
                NotifyPropertyChanged();
            }
        }
    }
}
